package com.shun.gateway.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;

/**
 * url配置
 *
 * @author clever
 * @since 2021-09-24
 */
@Configuration
@ConfigurationProperties(prefix = "gateway.url")
@Data
class GatewayUrlProperty {

    //允许通过的URLS
    private List<String> allowUrls;

    //禁止通过的URLS,需要鉴权
    private List<String> forbidUrls;

    //登录URL
    private String loginUrl;
}
